package com.mall.mapper;
import com.mall.pojo.Active;
import com.mall.pojo.Admin;
import com.mall.pojo.Business;
import com.mall.pojo.Good;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AdminMapper {

    Admin login(String acc, String pwd);

    List<Good> showGoodPlus(String goodName, Integer LIMIT, Integer OFFSET);

    Integer searchCountGood(String goodName);

    List<Good> showGoodClassify(Integer pid, Integer LIMIT, Integer OFFSET);

    Integer showGoodClassifyCount(Integer pid);

    Integer backToPre(Integer pid);

    List<Good> selectPreById(Integer currentPid);



    Boolean insertByPid(Integer pid, String goodName,String level);

    List<Business> showStorePlus(String storeName, String businessStatus, Integer LIMIT, Integer OFFSET);

    Integer showStorePlusCount(String storeName, String businessStatus);

    Boolean passToOne(Integer businessId);

    List<Good> searchAll();


    String selectLevelByGId(Integer gid);

    List<Active> showKillActive(String activeName, Integer LIMIT, Integer OFFSET);

    Integer showKillActiveCount(String activeName);

    Boolean addKill(Active active);
}
